<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<link rel="stylesheet" href="static/css/bootstrap.min.css" />
		<link rel = "stylesheet" href = "static/css/globle.css"/>
		<script type="text/javascript" src = "static/js/jquery.js"></script>
	<title></title>
</head>
<body>
 <div class="navbar navbar-fixed-top" id = "manager">
			<div class="navbar-inner">
				<div class="container">
					<a  class = "brand" href="#">项目管理系统</a>
			
				</div>
			</div>
</div>
	<div class="container" style = "margin-top:60px">
		<div class="row" style = "margin-top:10px">
			<div class="span3">
				<div style="padding: 8px 0;" class="well">
					<ul class="nav nav-list">
					  <li class="nav-header">${project.p_name }</li>
					  <li ><a href="#"><i class="icon-home"></i>最新动态</a></li>
					  <li><a href="goal.jspx?p_id=${project.p_id }"><i class="icon-flag"></i>目标</a></li>
					  <li><a href="material.jspx?pid=${project.p_id }"><i class="icon-folder-open"></i>资料库</a></li>
					  <li><a href ="fileShare.jspx?pid=${project.p_id }"><i class="icon-file"></i>文件共享</a></li>
					  <li><a href="contact.jspx?pid=${project.p_id }"><i class="icon-user"></i>联系人</a></li>
					  <li class="active"><a href="idear.jspx?pid=${project.p_id }"><i class="icon-fire icon-white "></i>想法</a></li>
					  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
					  <li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			
				<div class = "span9">
				    
				<ul class="breadcrumb" style = "margin-top:40px;margin-bottom:0px;border-radius:3px 3px 0 0;">
						<li class = "active "> <i class="icon-fire"></i>想法</li>
						<li style = "float:right"><i class = "icon-plus"></i><a href = "idear.jspx?_m=add">发表想法</a></li>
				</ul>
					<div class = "well" style = "border-radius:0 0 3px 3px;background-color:white">
					<c:forEach items = "${idearPager.result }" var = "idear">
						<blockquote>
							<h3><a href = "idear.jspx?_m=showIdear&iid=${idear.i_id }">${idear.i_title}</a></h3>
							<div style = "height:40px;overflow:hidden;line-height:20px" ><p>${idear.i_content }</p></div>
							<br/><small>【${idear.member}】发布于${idear.i_createTime }</small>
							<a href = "idear.jspx?_m=edit&iid=${idear.i_id }"><i class="icon-pencil"></i></a>
							<a href = "javascript:;" rel=${idear.i_id } class = "del_link"><i class = "icon-trash"></i></a>
						</blockquote>
					 </c:forEach>
					</div>
				
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$(".del_link").click(function(){
				var id = $(this).attr("rel");
				if(confirm("确定要删除？")){
					window.location.href = "idear.jspx?_m=delete&iid="+id;
				}
			})
		})
	</script>
</body>
</html>